#pragma once
#include "Product.h"


class CPhone : public CProduct
{
public:
	CPhone();
	virtual ~CPhone();
public:
	virtual void copy(const CProduct* pProdcut);
	virtual CProduct* clone();
public:
	void setIMEI(const CString& sIMEI);
	CString getIMEI() const ;

	void setNote(const CString& sNote);
	CString getNote() const ;

	void setStatus(const int &bSell);
	int getStatus()const;

public:
	virtual void bought();
	virtual void warranty();
	virtual bool pushToDB();
	virtual bool updateDB();
	virtual bool removeOutDB();
protected:
	CString m_sIMEI;
	CString m_sNote;
	int  m_bIsSell;
	
};